import os

def writing_classes(classes, filepath):
    if not os.path.exists(filepath):
        os.mkdir(filepath)

    txt = os.path.join(filepath, "classes.names")
    with open(txt, "w") as file:
        for i in range(len(classes)):
            file.write(classes[i])
            file.write('\n')

